<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
    <link rel="stylesheet" href="http://at.alicdn.com/t/c/font_4621618_tc4nlp4edmb.css">
    <style>
        *{
            padding: 0;
            margin: 0;
        }

        #app{
            background-color: rgb(244, 251, 213);
            position: relative;
            width: 800px;
            height: 400px;
        }

        a{
           text-decoration: none;
           color: rgb(172, 172, 172);
        }

        #zuo a{
            color: rgb(0, 134, 243);
        }

        .zhengge{
            display: flex;
            justify-content: space-around;
        }

        #zi{
            text-align: center;
            position: relative;
            margin-top: 20px;
        }

        .xiazai{
            position: absolute;
            top: 0;
            left: 44px;
        }

        .zuoxia, .zuoxia1{
            position: absolute;
            bottom: -4px;
            left: 0px;
        }

        .youxia, .youxia1{
            position: absolute;
            bottom: -4px;
            right: 0px;
        }

        #ma{
            position: relative; 
            margin-top: 10px;
        }

        .leixin{
            margin-top: 10px;
            text-align: center;
        }

        .tu2{
            position: absolute;
            top: 0px;
        }

        .tu3{
            position: absolute;
            top: -2px;
            left: -54px;
        }

        #you{
            width: 350px;
            height: 300px;
        }

        .fangshi{
           margin-top: 20px;
           display: flex;
           justify-content: space-evenly;
        }

        .shuru{
            margin-top: 10px;
            position: relative;

        }
        .shuru::after{
            display: block;
            content: "";
            width: 350px;
            height: 1px;
            top: 50px;
            left: 0px;
            background-color: black;
            position: absolute;
        }

        .leisang{
            text-align: center;
            margin-top: 10px;
        }

        .qita{
            text-align: center;
            margin-top: 20px;
        }

        .san{
            text-align: center;
            margin-top: 20px;
        }

        .icon-weixin{
            color: green;
        }

        .icon-weibo{
            color: red;
        }

        .icon-QQ{
            color: blue;
        }
        .blue{
            color: blue;
        }
        
    </style>
</head>
<script src="./vue.js"></script>
<body>
<div id="app" style="margin: 0 auto; border-radius: 4px;overflow: hidden;">

        <div class="zhengge">

        <div id="zuo">
            
            <div id="zi">
                <div  class="deng"><p>扫描二维码登录</p></div>              
                <!-- <div v-show="wen===2" class="xiazai"><p>扫码下载客户端</p></div> -->
            </div>
    
            <div id="ma">
                <div style="width: 200px; height: 200px;" @mouseover="wen=3" @mouseout="wen=1">
                    <img class="tu1" v-show="wen===1" src="img/icon.png" alt="" width="200px" height="200px">
                    <img class="tu2" v-show="wen===2" src="img/QRcode.png" alt="" width="200px" height="200px">               
                    <img class="tu3" v-show="wen===3" src="img/icon-1.png" alt="" width="300px" height="200px">
                </div>
                   
            </div>

            <div class="leixin"><p>请使用&nbsp;<a @mouseover="wen=2" @mouseout="wen=1" href="">哔哩哔哩客户端</a><br>扫码登陆或扫码下载APP</p></div>

        </div>

        <div id="you">

            <div class="fangshi">
                <span @click="fei=1" :class="{blue:fei===1}">密码登录</span>
                <span @click="fei=2" :class="{blue:fei===2}">短信登陆</span>
            </div>

        <div class="denglu"  v-show="fei===1">

            <div class="shuru" style="width: 350px;height: 100px;border: 1px solid black;border-radius: 6px;display: flex;flex-wrap: wrap;align-items: center;">
                    <div><span>账号</span><input type="text" placeholder="账号" style="width: 310px;height: 46px; border: none; background-color: rgba(255, 255, 255, 0);outline: none;"></div>
                    <div><span>密码</span><input @focus="lei=2" @blur="lei=1" :type="hei?'text':'password'" placeholder="密码" style="width: 200px;height: 46px; border: none; background-color: rgba(255, 255, 255, 0);outline: none;" >
                
                
                <span class="iconfont icon-biyanjing" @click="yang=2;hei=!hei" v-show="yang===1"></span>
                <span class="iconfont icon-yanjing" @click="yang=1;hei=!hei" v-show="yang===2" ></span>
                <span><a href="" style="color: rgb(167, 167, 254);">忘记密码？</a></span></div>
            </div>

            <div class="leisang" style="display: flex;justify-content: space-between;">
                <button style="width: 170px;height: 30px; background-color: rgba(255, 255, 255, 0);outline: none;border: 1px solid black;border-radius: 4px;">注册</button>
                <button style="width: 170px;height: 30px; color: white; background-color:rgb(61, 132, 255);outline: none;border: 1px solid black;border-radius: 4px;">登录</button>
            </div>

        </div>


        <div class="duanxin" v-show="fei===2">
              
            <div class="shuru" style="width: 350px;height: 100px;border: 1px solid black;border-radius: 6px;display: flex;flex-wrap: wrap;align-items: center;">
                <div><span>+86</span><input type="text" placeholder="请输入手机号" style="width: 200px;height: 46px; border: none; background-color: rgba(255, 255, 255, 0);outline: none;"><span>获取验证码</span></div>
                <div><span>验证码</span><input @focus="lei=2" @blur="lei=1" placeholder="请输入验证码" style="width: 300px;height: 46px; border: none; background-color: rgba(255, 255, 255, 0);outline: none;" >           
            
            </div>
        </div>

        <div class="leisang">
            <button style="width: 170px;height: 30px; color: white; background-color:rgb(61, 132, 255);outline: none;border: 1px solid black;border-radius: 4px;">注册/登录</button>
        </div>

            

        </div>

            <p class="qita">其他方式登录</p>

            <div class="san" style="display: flex;justify-content: space-around;">
                <a href="https://open.weixin.qq.com/connect/qrconnect?appid=wxafc256bf83583323&redirect_uri=https%3A%2F%2Fpassport.bilibili.com%2Fpc%2Fpassport%2FsnsLogin%3Fcsrf_state%3D52b8346396e4482b0f15f24949083ee4%26sns_platform%3Dwechat%26source%3Dmain-fe-header%26go_url%3Dhttps%253A%252F%252Fwww.bilibili.com%252F%253Fbsource%253Dlenovo_browser&response_type=code&scope=snsapi_login&state=authorize#wechat_redirect"><span class="iconfont icon-weixin"></span>微信登录</a>
                <a href="https://api.weibo.com/oauth2/authorize?client_id=2841902482&redirect_uri=https%3A%2F%2Fpassport.bilibili.com%2Fpc%2Fpassport%2FsnsLogin%3Fcsrf_state%3D270a098beb518751c3f1a6d72c5c0dff%26sns_platform%3Dweibo%26source%3Dmain-fe-header%26go_url%3Dhttps%253A%252F%252Fwww.bilibili.com%252F%253Fbsource%253Dlenovo_browser&scope=email###"><span class="iconfont icon-weibo"></span>微博登录</a>
                <a href="https://graph.qq.com/oauth2.0/show?which=Login&display=pc&response_type=code&state=authorize&client_id=101135748&redirect_uri=https%3A%2F%2Fpassport.bilibili.com%2Fpc%2Fpassport%2FsnsLogin%3Fcsrf_state%3D50c7617527b4e6942e0b2476e7a4071e%26sns_platform%3Dqq%26source%3Dmain-fe-header%26go_url%3Dhttps%253A%252F%252Fwww.bilibili.com%252F%253Fbsource%253Dlenovo_browser&scope=do_like,get_user_info,get_simple_userinfo,get_vip_info,get_vip_rich_info,add_one_blog,list_album,upload_pic,add_album,list_photo,get_info,add_t,del_t,add_pic_t,get_repost_list,get_other_info,get_fanslist,get_idollist,add_idol,del_idol,get_tenpay_addr"><span class="iconfont icon-QQ"></span>QQ登录</a>
            </div> 

        </div>
    </div>
        <div class="zuoxia"><img v-show="lei===1" src="img/lift.png" alt="" width="100px" height="100px"></div>
        <div class="zuoxia1"><img v-show="lei===2"  src="img/lift-1.png" alt="" width="100px" height="100px"></div>
        <div class="youxia"><img v-show="lei===1" src="img/right.png" alt="" width="100px" height="100px"></div>
        <div class="youxia1"><img v-show="lei===2" src="img/right-1.png" alt="" width="100px" height="100px"></div>

    

</div>

</body>
<script>
     const{createApp,ref}=Vue;

     createApp({
        setup(){
            let lei = ref(1);
            let wen = ref(1);
            let hei = ref(false);
            let yang = ref(2);
            let fei = ref(1);
            let color = ref('blue')
            return{
              lei,
              wen,
              hei,
              yang,fei,
              color
            }
        }
     }).mount('#app')
</script>
</html>